//Source file: D:\\test\\com\\ce\\pms\\custservice\\model\\CustEventKindDO.java

package com.ce.pms.system.custservice.model;

import javax.persistence.Column;
import javax.persistence.Embedded;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.ce.pms.common.model.SysInfo;
import com.sitechasia.webx.core.model.IDomainObject;


/**
 * 实体名称:事件类型  关联数据表:CE_CUST_EVENT_ASPECT
 *
 * @author 黄彦军 创建日期：2008-12-8
 */
@Entity
@Table(name = "CE_CUST_EVENT_ASPECT")
public class CustEventKindDO implements IDomainObject
{

	/**
	 * 关键字
	 */
    @Id
	@GeneratedValue
	@Column(name = "CUST_EVENT_KIND_ID",nullable = false)
   private Long keyword;

   /**
    * 实现类型名称
    */
    @Column(name = "NAME", length = 20, nullable = false)
   private String name;

   /**
    * 备注
    */
    @Column(name = "REMARK",length=200)
   private String remark;

   /**
    * 序号
    */
    @Column(name = "SEQUENCE")
   private Short sequence;


    /**
     * 事件性质
     */
    //@org.hibernate.annotations.Cascade(value = { org.hibernate.annotations.CascadeType.SAVE_UPDATE})
	@ManyToOne(cascade={},fetch = FetchType.LAZY)
	@JoinColumn(name = "CUST_EVENT_NATURE_ID")
   public CustEventNatureDO custEventNature;

	 /**
	 * 系统信息
	 */
	@Embedded
	private SysInfo sysInfo;

   /**
    * @roseuid 4937AB2C037A
    */
   public CustEventKindDO(){}

   /**
    * @param keword
    * @return com.ce.pms.custservice.model.CustEventKindDO
    * @roseuid 492B9CE400DA
    */
   public CustEventKindDO(Long keyword) {
		this.keyword = keyword;
	}

	/**
 * @return the custEventNature
 */
public CustEventNatureDO getCustEventNature() {
	return custEventNature;
}

/**
 * @param custEventNature the custEventNature to set
 */
public void setCustEventNature(CustEventNatureDO custEventNature) {
	this.custEventNature = custEventNature;
}

	public Long getKeyword() {
		return keyword;
	}

	public void setKeyword(Long keyword) {
		this.keyword = keyword;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Short getSequence() {
		return sequence;
	}

	public void setSequence(Short sequence) {
		this.sequence = sequence;
	}

	public SysInfo getSysInfo() {
		return sysInfo;
	}

	public void setSysInfo(SysInfo sysInfo) {
		this.sysInfo = sysInfo;
	}
}
